count = 0
while True:
    print(count)
    count += 1
    if count >= 5:
        break  # 当 count 达到 5 时跳出循环
# 输出：0, 1, 2, 3, 4